//
//  CinemaTableViewCell.m
//  HuiWenMovie
//
//  Created by ios on 15/7/22.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setCinemaModel:(CinemaListModel *)cinemaModel
{
    _cinemaModel = cinemaModel;
    [self setNeedsLayout];

}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _name.text = _cinemaModel.name;
    _address.text = _cinemaModel.address;
    _grade.text = _cinemaModel.grade;
    _distance.text = [NSString stringWithFormat:@"%0.1f",_cinemaModel.distance2];

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
